• Add another Collision with Shape. Change the name in front of the event handler to ball.
  • Change the first if statement to test for colliding with "green". Delete the .say() command.
  • Inside the first if statement, have the sprite Go To center stage and set the Sprite Gravity Off.
  • Use Show Sprite to show the win_text.
  • Use Set Text to change win_text to "Player 1 wins!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)